Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the shell extension's dependency on fmt for huge savings #9552

Merged
1 commit merged into from
Mar 21, 2021

Conversation

DHowett
Copy link
Member

@DHowett DHowett commented Mar 19, 2021

Yeah, this one-line change shaves off almost half the binary.

Binary size savings (x64 Release):

Note WindowsTerminalShellExt.dll
Before 130048
After 73728
Delta -56320
%Delta -43.3%

Yeah, this one-line change shaves off almost half the binary.

Binary size savings (x64 Release):

Note   | WindowsTerminalShellExt.dll
------ | ---------------------------
Before | 130048
After  | 73728
Delta  | 56320
%Delta | 43.3%
Copy link
Member

@carlos-zamora carlos-zamora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we completely cut fmt from ShellExtension then?

Bruh, how do you find this stuff haha. Good work!

@carlos-zamora carlos-zamora added the Needs-Second It's a PR that needs another sign-off label Mar 20, 2021
@ghost ghost requested review from miniksa, leonMSFT and PankajBhojwani March 20, 2021 00:15
@DHowett
Copy link
Member Author

DHowett commented Mar 20, 2021

This does complete pull fmt from ShellExt

Found the waste using @Austin-Lamb’s tools 😄

Copy link
Member

@miniksa miniksa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What you meant was "Lose up to 43 percent of your size with this one weird trick!"

@DHowett
Copy link
Member Author

DHowett commented Mar 21, 2021

ha!

@DHowett DHowett added the AutoMerge Marked for automatic merge by the bot when requirements are met label Mar 21, 2021
@ghost
Copy link

ghost commented Mar 21, 2021

Hello @DHowett!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 9069fca into main Mar 21, 2021
@ghost ghost deleted the dev/duhowett/shellext-fmt branch March 21, 2021 16:56
DHowett added a commit that referenced this pull request Mar 22, 2021
DHowett added a commit that referenced this pull request Mar 22, 2021
@DHowett DHowett mentioned this pull request Mar 22, 2021
DHowett added a commit that referenced this pull request Apr 2, 2021
Yeah, this one-line change shaves off almost half the binary.

Binary size savings (x64 Release):

Note   | WindowsTerminalShellExt.dll
------ | ---------------------------
Before | 130048
After  | 73728
Delta  | -56320
%Delta | -43.3%

(cherry picked from commit 9069fca)
@ghost
Copy link

ghost commented Apr 14, 2021

🎉Windows Terminal v1.7.1033.0 has been released which incorporates this pull request.:tada:

Handy links:

@ghost
Copy link

ghost commented Apr 14, 2021

🎉Windows Terminal Preview v1.8.1032.0 has been released which incorporates this pull request.:tada:

Handy links:

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AutoMerge Marked for automatic merge by the bot when requirements are met Needs-Second It's a PR that needs another sign-off
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants